/**
 * 
 */
package com.fish.service.impl.sight;

import java.util.List;
import java.util.Map;

import com.fish.common.constant.QueryPage;
import com.fish.common.tag.Pager;
import com.fish.finance.po.Settlement;
import com.fish.service.sight.SightService;
import com.fish.sight.dao.SightDao;
import com.fish.sight.po.Sight;

/**
 * @author damian
 *
 */
public class SightServiceImpl implements SightService {
	private SightDao sightDao;

	@Override
	public Pager<Sight> selectSightWithPaging(Map<String, Object> param) {
		return sightDao.selectSightWithPaging(param);
	}

	@Override
	public Long insertSight(Sight obj) {
		return sightDao.insertSight(obj);
	}

	@Override
	public Sight selectSightById(String id) {
		return sightDao.selectSightById(id);
	}

	@Override
	public boolean updateSight(Sight obj) {
		return sightDao.updateSight(obj);
	}

	@Override
	public boolean deleteSight(String id, String updateUserId) {
		return sightDao.deleteSight(id, updateUserId);
	}

	/**
	 * 获取sightDao 
	 */
	public SightDao getSightDao() {
		return sightDao;
	}

	/**
	 * @param sightDao the sightDao to set
	 */
	public void setSightDao(SightDao sightDao) {
		this.sightDao = sightDao;
	}

	@Override
	public Long querySightCountByObject(Sight sight) {
		return this.sightDao.querySightCountByObject(sight);
	}
	
	@Override
	public List<Sight> querySightByObject(Sight sight,QueryPage queryPage) {
		return this.sightDao.querySightByObject(sight,queryPage);
	}
	
	
}
